class AddReferenceToSubCaetgory < ActiveRecord::Migration
  def self.up
    change_table :sub_categories do |t|
      t.references :category
    end
  end

  def self.down
    remove_coloumn :sub_categories, :category_id
  end
end
